﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;

public partial class Clases_PaginaPrincipal : System.Web.UI.MasterPage
{
    public bool MuestraMenu = true;
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            this.MuestraMenu = (bool)Session["MuestraMenu"];
        }
        catch
        {
            this.MuestraMenu = true;
        }
        if (this.MuestraMenu == false)
        {
            this.DropDownList2.Enabled  = false;
            this.lblTituloFiltro.Enabled = false;
            this.DropDownList1.Enabled = false;
            this.lblTituloFiltro0.Enabled = false;
        }
        for (int i = 2000; i <= DateTime.Now.Year; i++)
        {
            this.DropDownList2.Items.Add(i.ToString());
        }
        this.DropDownList2.Text = DateTime.Now.Year.ToString();
    }
    protected void DropDownList2_SelectedIndexChanged(object sender, EventArgs e)
    {
        
    }
}

